import 'package:flutter/material.dart';
import 'package:flutter_create_framework/component/place.dart';
import 'package:flutter_create_framework/util/screen_util.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

class Loading extends StatelessWidget {

  String text;
  Loading({Key key,@required this.text}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisSize: MainAxisSize.min,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: <Widget>[
        SpinKitFadingCircle(color: Colors.black,size: Pxw(context, 40),),
        Place(height: 20,),
        Text(text,style: TextStyle(fontSize: Pxsp(context, 12)),)
      ],
    );
  }
}
